/*    */ package dm.jdbc.xa;
/*    */ 
/*    */ import dm.jdbc.pool.DmdbPooledConnection_bs;
/*    */ import java.sql.Connection;
/*    */ import java.sql.SQLException;
/*    */ import javax.sql.XAConnection;
/*    */ import javax.transaction.xa.XAResource;
/*    */ 
/*    */ public class DmdbXAConnection extends DmdbPooledConnection_bs implements XAConnection
/*    */ {
/*    */   public DmdbXAConnection(Connection connection)
/*    */   {
/* 13 */     super(connection);
/*    */     try {
/* 15 */       if (connection != null) {
/* 16 */         connection.setAutoCommit(false);
/*    */       }
/*    */     }
/*    */     catch (SQLException localSQLException) {}
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public XAResource getXAResource()
/*    */     throws SQLException
/*    */   {
/* 32 */     DmdbXAResource dmXARes = new DmdbXAResource(this.physicalConn);
/* 33 */     return dmXARes;
/*    */   }
/*    */   
/*    */   public synchronized Connection getConnection() throws SQLException {
/* 37 */     Connection con = super.getConnection();
/* 38 */     con.setAutoCommit(false);
/* 39 */     return con;
/*    */   }
/*    */ }


/* Location:              D:\Program Files\DBMS_20150813\jdbc\Dm7JdbcDriver17.jar!\dm\jdbc\xa\DmdbXAConnection.class
 * Java compiler version: 2 (46.0)
 * JD-Core Version:       0.7.1
 */